﻿@using GdHotel.Data
@using GdHotel.Data.Resources
@using GdHotel.Data.Meta.Models
@model ReserveRoomModel

@{
    var language = (Language) ViewData["Language"];
}

<div class="form_reserve_block">
    <div class="form_reserve_wrap">
        <div class="form_reserve_top"></div>								
        @using (Html.BeginForm("ReserveRoomConfirmed", "Reservation", FormMethod.Post, new {@class = "form_reserve"}))
        {
            @Html.ValidationSummary(true)
            <h2>@Localization.ReservationForm</h2>
            <div class="form_item">
                <p>@Html.LabelFor(model => model.Name): @Html.ValidationMessageFor(model => model.Name)</p>
                @Html.TextBoxFor(model => model.Name, new {@class = "field w240"})
                @*@Html.EditorFor(model => model.Name)*@

            </div>
            <div class="form_item clearfix">
                <div class="form_item2 fl_left">
                    <p>@Html.LabelFor(model => model.CheckInDate):</p>
                    @Html.TextBoxFor(model => model.CheckInDate, new {@class = "field w85 fl_left datepicker", @readonly = "readonly"})
                </div>
                <div class="form_item2 fl_right">
                    <p>@Html.LabelFor(model => model.DepartureDate):</p>
                    @Html.TextBoxFor(model => model.DepartureDate, new {@class = "field w85 fl_left datepicker", @readonly = "readonly"})

                    <div class="calendar_block"></div>
                </div>												
            </div>
            <div class="form_item">
                <p>@Localization.RoomType:</p>											
                <p class="ch down">
                    @Html.EditorFor(model => model.IsStandardSingle)
                    @Html.ValidationMessageFor(model => model.IsStandardSingle)

                    @Html.LabelFor(model => model.IsStandardSingle)</p>
                <p class="ch">
                    @Html.EditorFor(model => model.IsStandardDouble)
                    @Html.ValidationMessageFor(model => model.IsStandardDouble)
                    @Html.LabelFor(model => model.IsStandardDouble)</p>

                <p class="ch">
                    @Html.EditorFor(model => model.IsDeluxeRoom)
                    @Html.ValidationMessageFor(model => model.IsDeluxeRoom)
                    @Html.LabelFor(model => model.IsDeluxeRoom)</p>
                <p class="ch">
                    @Html.EditorFor(model => model.IsLuxurySuite)
                    @Html.ValidationMessageFor(model => model.IsLuxurySuite)
                    @Html.LabelFor(model => model.IsLuxurySuite)</p>
                <p class="ch">
                    @Html.EditorFor(model => model.IsPresidentSuite)
                    @Html.ValidationMessageFor(model => model.IsPresidentSuite)
                    @Html.LabelFor(model => model.IsPresidentSuite)</p>												
            </div>
            <div class="form_item clearfix">
                <div class="form_item2 fl_left">
                    <p>@Html.LabelFor(model => model.RoomsCount):</p>
                    @Html.TextBoxFor(model => model.RoomsCount, new { @class = "field w110 fl_left" })
                </div>                                                                                        
            </div>

            <div class="form_item">
                <p>@Html.LabelFor(model => model.Phone): @Html.ValidationMessageFor(model => model.Phone)</p>
                @Html.TextBoxFor(model => model.Phone, new {@class = "field w240"})
            </div>

            <div class="form_item">
                <p>@Html.LabelFor(model => model.Email): @Html.ValidationMessageFor(model => model.Email)</p>
                @Html.TextBoxFor(model => model.Email, new {@class = "field w240"})
            </div>

            <div class="form_item">
                <p>@Html.LabelFor(model => model.Comments):</p>
                @Html.EditorFor(model => model.Comments)
            </div>
            
            <div class="form_reserve_btn">
                <div class="reserve_btn @language.ShortName"><input type="submit" value="" /></div>
            </div>
        }
        <div class="form_reserve_bot"></div>
    </div>								
</div>